class A:
    pass

class B:
    pass

class C(A,B):
    pass

# 父类
class Animal:
    def __init__(self, name):
        self.name = name

    def speak(self):
        return f"{self.name} makes a sound"

# 子类(在括号里面加上父类名)
class Dog(Animal):
    pass

# 使用继承
dog = Dog("Buddy")

print(dog.speak())  # 输出: Buddy makes a sound
